/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package list1;

/**
 *
 * @author VismonteM
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) 
        {
        //Creates a new linked list
        SinglyLinkedList list = new SinglyLinkedList();
        //Adds 20 ints to the List
        list.insert(new Integer(0));
        for (int i = 0; i < 20; i++)
            list.addLast(new Integer(i * 2 + 1));
//        //Prints the list
        list.insert(new Integer(35));
        list.insert(55);
//        list.loadData("G:\\Documents\\School\\AP Computer Science B\\Unit3" +
//                "\\Lesson AB29 - Linked Lists\\Lab Assignment AB29.2 - Data File" +
//                "\\file20.txt");
        list.printList();
        System.out.println(list.size());
        System.out.println(list.get(20));
//        list.printBackward();
        }

}
